﻿using Newtonsoft.Json;
using System.Collections.Generic;

namespace VisionCloud.Domain.DtoModel.Inner
{
    public class FindWithFloorFromDCRqDto
    {
        [JsonProperty("projectCode")]
        public string ProjectCode { set; get; }
    }

    /// <summary>
    /// 查询项目楼栋楼层编码
    /// </summary>
    public class FindWithFloorRqDto
    {
        /// <summary>
        /// 项目ID
        /// </summary>
        public string ProjectId { set; get; }

        /// <summary>
        /// 楼栋名称
        /// </summary>
        public string BuildingName { set; get; }

        /// <summary>
        /// 楼层名。本系统用数字命名
        /// </summary>
        public string FloorName { set; get; }
    }

    public class FindWithFloorFromDCRspDto : ProjectDCRspDataBaseDto
    {
        [JsonProperty("buildingList")]
        public List<Building> BuildingList { set; get; }

        [JsonProperty("projectCode")]
        public string ProjectCode { set; get; }

        [JsonProperty("projectId")]
        public string ProjectId { set; get; }

        [JsonProperty("projectName")]
        public string ProjectName { set; get; }
    }

    public class Building
    {
        [JsonProperty("buildingCode")]
        public string BuildingCode { set; get; }

        [JsonProperty("buildingId")]
        public string BuildingId { set; get; }

        [JsonProperty("buildingName")]
        public string BuildingName { set; get; }

        [JsonProperty("isFreeze")]
        public string IsFreeze { set; get; }

        [JsonProperty("floorList")]
        public List<Floor> FloorList { set; get; }
    }

    public class Floor
    {
        [JsonProperty("floorCode")]
        public string FloorCode { set; get; }

        [JsonProperty("floorId")]
        public string FloorId { set; get; }

        [JsonProperty("floorName")]
        public string FloorName { set; get; }

        [JsonProperty("isFreeze")]
        public string IsFreeze { set; get; }
    }
}